<template>
    <div id="main1"></div>
</template>
<script>
    import {t} from '../utils/data'
    import echarts from "echarts";

    export default {
        props: ['data', 'name', 'title'],
        computed: {

        },
        mounted() {
            const myChart = echarts.init(this.$el);
            t(myChart, this.name, this.title, this.data)
        }
    };
</script>
<style scoped>
    #main1 {
        width: 500px;
        height: 500px;
    }
</style>

